package com.annocation;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;

public class DemoTest001 {


    public static void main(String args[]){
        try {
            List list=new ArrayList();
            Class<?> clazz = Class.forName("com.annocation.Student");
            STable stable = clazz.getAnnotation(STable.class);
            System.out.println(stable.value());
            Field fd = clazz.getDeclaredField("studentName");
             SColumn sn=fd.getAnnotation(SColumn.class);
              System.out.println(sn.columnName()+" "+sn.type()+" "+sn.length());
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (NoSuchFieldException e) {
            e.printStackTrace();
        }
    }
}
